<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" {if $row.id==1}readonly{/if} data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    {if $row.id>1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <!--<div class="col-xs-12 col-sm-8">
            <textarea id="c-address" data-rule="required" class="form-control " rows="5" name="row[address]" cols="50">{$row.address|htmlentities}</textarea>
        </div>-->
        <div class="col-xs-12 col-sm-8">
            <select  id="c-type"  data-multiple="true" multiple="" class="form-control selectpicker" name="row[address][]">
                {foreach name="address" item="vo"}
                <option value="{$vo.mergename}"  {if $vo.level<3}disabled{/if} {if $vo.checked==true}selected{/if}>{$vo.name}</option>
                {/foreach}
            </select>
        </div>
        <!--<span style="line-height: 32px;
    color: red;
    font-size: 12px;">不选择则不修改</span>-->
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_smoke')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_smoke"  data-rule="required;range(0~)" min="0" class="form-control" name="row[goods_smoke]" type="number" value="{$row.goods_smoke|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Favourable')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-favourable" data-rule="required;range(0~)" min="0" class="form-control" name="row[favourable]" type="number" value="{$row.favourable|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Region_divide')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-region_divide" data-rule="required;range(0~)" min="0" class="form-control" name="row[region_divide]" type="number" value="{$row.region_divide|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Merchant_smoke')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-merchant_smoke" data-rule="required;range(0~)" min="0" class="form-control" name="row[merchant_smoke]" type="number" value="{$row.merchant_smoke|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Kabaw_divide_profit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-kabaw_divide_profit" data-rule="required;range(0~)" min="0" class="form-control" name="row[kabaw_divide_profit]" type="number" value="{$row.kabaw_divide_profit|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
